<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022-02-15
  Time: 15:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>
    <!-- 小脚本 -->
    <%
        //输出今天的日期
        Date d=new Date();
        out.println(d);//java.io.Writer
        out.println(out instanceof java.io.Writer);
    %>
</h1>
<%
    SimpleDateFormat df=new SimpleDateFormat("H时m分s秒");
    String str=df.format(d);
%>
<h2><%=str%></h2>
</body>
</html>
